import { Base } from '../../utils/base.js'

class Search extends Base {
    constructor() {
        super()
    }
    
    // 修改购物车
    getSearch(params,callback){
        var url = '/purchase/goods/searcheGoods';
        var reType = 'POST';
        this.commonRequest(url, reType, params, callback);
    }
   
    commonRequest(url, reType, params, callback) {
        var that = this;
        var param = {
            url: url,
            type: reType,
            data: params,
            sCallback: function (data) {
                typeof callback == 'function' && callback(data);
            },
            eCallback: data => {
                callback && callback({ status: false });
            }
        };
        this.request(param);
    }


}
module.exports = {
  Search
}